package com.gistmap.ecepoi.common;

import lombok.AllArgsConstructor;
import lombok.Data;
/**
 * @author zhangran
 * @date 2018/7/2
 */

@Data
@AllArgsConstructor
public class ExcelHeader implements Comparable<ExcelHeader>{
    /**
     * 列的名称
     */
    private String title;
    /**
     * 列的顺序
     */
    private int order;
    /**
     * 对应实体字段名称
     */
    private String fieldName;

    @Override
    public int compareTo(ExcelHeader excelHeader) {
        return order > excelHeader.order ? 1 : (order < excelHeader.order ? -1 : 0);
    }
}